package job.manager.db.ws;

import java.util.ArrayList;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ejb.Stateless;
import job.manager.db.ec.TimeScheduleRowEB;
import job.manager.db.sb.TimeLocal;

/**
 *  This is our webservice part and has all the functions that are able to
 *  connect to this application. 
 * 
 */
@WebService()
@Stateless()
public class TimeService {
    @EJB
    private TimeLocal ejbRef;

    /*
     *  this fnction returns all the timeReport's.
     *
     */
    @WebMethod(operationName = "getTimeReportsByUserNameWS")
    public ArrayList<TimeScheduleRowEB> getTimeReportsByUserNameWS(@WebParam(name = "user")
    String user) {
        return ejbRef.getTimeReportsByUserNameWS(user);
    }

}
